More robust and versatile implementation of derive(Debug)
and derive(Display)
. Unlike the version ofderive(Debug)
in the standard library, these macros will always successfully generate an implementation - even if a member does not
implement Debug
/Display
. In that case, the generated implementation will print a replacement string of the form
<TypeName>
.
use Debug; // replacement for `use std::fmt::Debug;`
// a type that implements neither `Debug` nor `Display`
;
no_std
This crate is no_std
and can be used from both no_std
and std
contexts without any action required.
MSRV
The current MSRV is 1.69.0. For this project, it is primarily driven by the few dependencies it relies on.